<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$myFile = "./files/".$_GET["param1"]."/".$_GET["param2"]."/".$_GET["param3"];
$f = fopen($myFile,"r");
$theData = fread($f, filesize($myFile));
fclose($f);
$array['p1'] = $theData;
$array['p2'] = $_GET["param2"];
$array['p3'] = $_GET["param3"];
$array['p4'] = $_GET["param4"];

echo json_encode($array);

?>
